<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .img{
            background-image: url("4.gif");
            height: 150px;
            width: 400px;
            background-repeat: no-repeat;
        }
        .img2{
            background-image: url("2.jpg");
            height: 50px;
            width: 50px;
            background-position: 84px -58px;
        }
    </style>
</head>
<body>
    <div class="img"></div>

    <div class="img2"></div>
</body>
</html>